function encrypt(originalText, cipherKey) {
  if (!cipherKey && !defaultCipherKey) {
    cipherKey = cookie.load('api_key') || defaultCipherKey;
    // cipher = defaultCipher;
  }
  if (cipherKey) {
    // cipherKey = defaultCipherKey;
    const cipher = new RC4(cipherKey);
    // defaultCipherKey = cipherKey;
    // defaultCipher = cipher;
    const encryptedText = cipher.encodeString(originalText, 'utf-8', 'base64');
    return encryptedText;
  }
}
// let defaultCipher = new RC4(defaultCipherKey);
let defaultCipher = new RC4(defaultCipherKey).
let defaultCipher = new RC4 ( defaultCipherKey ) .
function encrypt(originalText, cipherKey) {
  if (!cipherKey && !defaultCipherKey) {
    cipherKey = cookie.load('api_key') || defaultCipherKey;
  }
  if (cipherKey) {
    const cipher = new RC4(cipherKey);
    const encryptedText = cipher.encodeString(originalText, 'utf-8', 'base64');
    return encryptedText;
  }
}
function encrypt ( originalText , cipherKey ) { if ( ! cipherKey && ! defaultCipherKey ) { cipherKey = cookie . load ( 'api_key' ) || defaultCipherKey ; } if ( cipherKey ) { const cipher = new RC4 ( cipherKey ) ; const encryptedText = cipher . encodeString ( originalText , 'utf-8' , 'base64' ) ; return encryptedText ; } }
let defaultCipher = new RC4(defaultCipherKey);
let defaultCipher = new RC4 ( defaultCipherKey ) ;
// cipher = defaultCipher; // cipherKey = defaultCipherKey; // defaultCipherKey = cipherKey; // defaultCipher = cipher;