UNPKG

secure-login-two

Version:

A secure login where the user's private key is never hosted on servers or the user's online devices ( this project can also be used as a form of two-factor authentication ( 2FA ) where the user's private key is never hosted on servers )

14 lines (13 loc) 248 B
function wordwrap(str, ope, int, clo, brk) { var n = 0; var r = ''; var m = brk; var h = str.length; while (n + brk < h) { r = r + str.slice(n,m) + int; n = n + brk; m = m + brk; } r = ope + r + str.slice(m-brk,h) + clo; return r; };