mirror of
https://github.com/fenwick67/mastofeed
synced 2024-12-21 23:03:55 +01:00
8 lines
249 B
JavaScript
8 lines
249 B
JavaScript
const crypto = require('crypto')
|
|
const cryptoShit = require('../lib/apCryptoShit.js')
|
|
|
|
var signature = cryptoShit.sign("hello world")
|
|
|
|
var verified = cryptoShit.verify("hello world", signature)
|
|
|
|
console.info("is signature ok?: %s", verified); |