1
0
mirror of https://github.com/fenwick67/mastofeed synced 2024-12-22 07:16:14 +01:00
mastofeed-iframe-embed/utils/ensure-keys-work.js

8 lines
249 B
JavaScript
Raw Permalink Normal View History

2024-10-13 16:50:46 +02:00
const crypto = require('crypto')
const cryptoShit = require('../lib/apCryptoShit.js')
var signature = cryptoShit.sign("hello world")
2024-10-13 18:38:08 +02:00
var verified = cryptoShit.verify("hello world", signature)
2024-10-13 16:50:46 +02:00
console.info("is signature ok?: %s", verified);