Skip to content

dominictarr/lamport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lamport

Lamport One Time Signatures.

Lamport Signatures are a simple but strong cryptographic signatures system that uses symmetric cryptography, and is believed to still be secure under quantum computers. Unfortunately, you can only use a key one time. (this can be extended using Merkle Trees, however that is not implemented here)

var lamport = require('lamport')()
var keys = lamport.generate()
var signature = lamport.sign(keys.private, 'MESSAGE TO SIGN')
if(lamport.verify(keys.public, 'MESSAGE TO SIGN', signature))
  console.log('Authentic.')
else
  console.log('Not Authentic!')

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published