dist/simple-crypt-deps.js
function _rsapem_publicKeyToX509HexString(rsaKey) {
    var encodedIdentifier = "06092A864886F70D010101";
    var encodedNull = "0500";
    var headerSequence = "300D" + encodedIdentifier + encodedNull;

    var keys = _rsapem_derEncodeNumber(rsaKey.n);
    keys += _rsapem_derEncodeNumber(rsaKey.e);

    var keySequence = "0030" + _rsapem_encodeLength(keys.length / 2) + keys;
    var bitstring = "03" + _rsapem_encodeLength(keySequence.length / 2) + keySequence;

    var mainSequence = headerSequence + bitstring;

    return "30" + _rsapem_encodeLength(mainSequence.length / 2) + mainSequence;
}
function _rsapem_publicKeyToX509HexString(rsaKey) {
    var encodedIdentifier = "06092A864886F70D010101";
    var encodedNull = "0500";
    var headerSequence = "300D" + encodedIdentifier + encodedNull;

    var keys = _rsapem_derEncodeNumber(rsaKey.n);
    keys += _rsapem_derEncodeNumber(rsaKey.e);

    var keySequence = "0030" + _rsapem_encodeLength(keys.length / 2) + keys;
    var bitstring = "03" + _rsapem_encodeLength(keySequence.length / 2) + keySequence;

    var mainSequence = headerSequence + bitstring;

    return "30" + _rsapem_encodeLength(mainSequence.length / 2) + mainSequence;
}
function _rsapem_publicKeyToX509HexString ( rsaKey ) { var encodedIdentifier = "06092A864886F70D010101" ; var encodedNull = "0500" ; var headerSequence = "300D" + encodedIdentifier + encodedNull ; var keys = _rsapem_derEncodeNumber ( rsaKey . n ) ; keys += _rsapem_derEncodeNumber ( rsaKey . e ) ; var keySequence = "0030" + _rsapem_encodeLength ( keys . length / 2 ) + keys ; var bitstring = "03" + _rsapem_encodeLength ( keySequence . length / 2 ) + keySequence ; var mainSequence = headerSequence + bitstring ; return "30" + _rsapem_encodeLength ( mainSequence . length / 2 ) + mainSequence ; }
Converts public part of given key to ASN1 Hex String.
Converts public part of given key to ASN1 Hex String .