added utils and hashing

This commit is contained in:
cupcakearmy
2019-04-10 10:42:00 +02:00
parent df89829327
commit 6096036063
3 changed files with 45 additions and 5 deletions

View File

@@ -1,14 +1,20 @@
import RSA_Internal from './RSA'
import Symmetric_Internal from './Symmetric'
import H from './Hash'
import R from './RSA'
import S from './Symmetric'
import U from './Util'
export const RSA = RSA_Internal
export const Symmetric = Symmetric_Internal
export const RSA = R
export const Symmetric = S
export const Hash = H
export const Util = U
export default {
RSA,
Symmetric,
Hash,
Util,
}
// Require node 11
if (parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required')
if (parseInt(process.versions.node.split('.')[0]) < 11) throw new Error('Node 11 or higher is required')