cryptojs Questions

2

Solved

I have a problem generating the same ciphertext in JavaScript as provided in a third party PHP server. The server side uses a simple one-liner to generate a key, but I can't find a way to do the sa...
Gladi asked 13/7, 2017 at 13:47

3

Solved

I'm only asking this because I have read many posts for 2 days now about crypto AES encryption, and just when I thought I was getting it, I realized I wasn't getting it at all. This post is the c...
Wellknit asked 2/1, 2017 at 20:26

2

I need to create HmacSHA256 from a string with a private key... I use react-native-crypto-js but I cant use it's HmacSHA256 method, it keeps getting me "undefined function" error, here is my code: ...
Microcyte asked 6/8, 2019 at 19:22

6

I'm having trouble with basic encryption/decryption. I've looked all around for a working example but haven't quite found a working example. -I will be encrypting in php, decrypting with cryptojs ...
Childbearing asked 21/6, 2014 at 1:3

11

Solved

I try to encrypt and decrypt this string using crypto-js: const str = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI1ZDg5MjMxMjc5OTkxYjJhNGMwMjdjMGIiLCJoc2giOiIkMmEkMTMkWk53Y0cubjdRZFIybDA3S1RH...
Blighter asked 26/9, 2019 at 7:46

3

Solved

I am trying to write two classes in C# and Javascript which I can use throughout my project to encrypt or decrypt data using AES when data is exchanged. Using AES I am embedding the Salt (32 bytes...
Overarch asked 19/12, 2017 at 16:22

2

am developing a mobile app using React native, which involves an interaction with web3.js and Problem is RN does not support core Node.js modules, so I had to install npm i --save react-native-cryp...
Tenantry asked 9/4, 2021 at 10:39

7

I installed the jsonwebtoken package and ever since I'm getting the following error on running the React app : I tried installing the crypto-browserify package but that too didn't resolve the issu...
Clarence asked 3/1, 2022 at 11:40

4

Solved

My project was in Angular 6 and it had following lines of code const crypto = require('crypto-js'); const Buffer = require('buffer').Buffer; const decrypt = new Buffer(data.result.encr, 'base64');...
Claimant asked 18/6, 2020 at 4:7

3

Solved

I'm trying to encrypt something using crypto-js and using the AES type of encryption. The problem i'm having is that my encrypted value is different every time I encrypt it. With this simple exam...
Donnell asked 27/6, 2014 at 15:43

4

Solved

On the client side (mobile device) I encrypt a users password with CryptoJS: var lib_crypt = require('aes'); $.loginButton.addEventListener('click', function(e){ var key = lib_crypt.CryptoJS.enc...
Sialagogue asked 8/4, 2015 at 8:45

2

i try to encrypt user data by cryptojs library and send to server by ajax but the console shows the error: Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto...

2

Solved

I want to use crypto-js on my angular 8 application . this is my example code : import {Injectable} from '@angular/core'; import * as CryptoJS from 'crypto-js'; @Injectable() export class Hproto...
Engorge asked 26/9, 2019 at 20:31

3

Solved

I have a problem decrypting text, which is encrypted in Go lang, with CryptoJS. Here is Go code: https://play.golang.org/p/xCbl48T_iN package main import ( "crypto/aes" "crypto/cipher" "encod...
Talented asked 28/4, 2016 at 8:52

5

Solved

We tried to install our Hapis (Nodejs Version 14) Web service on our customer's server. It ran under HTTP for months, but when we went to enable HTTPS with the appropriate paths to the cert and key...
Maddi asked 17/8, 2021 at 19:44

4

Solved

Scenario I've got the following code: <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script> <div id="decrypted">Please wait...</div...
Monocyte asked 8/9, 2015 at 18:54

2

Solved

I am encrypting some data using CryptoJS and comparing it to an online tool and I am not getting the same result. In fact the result from CryptoJS in not decryptable with the tool. I am trying to ...
Sinus asked 8/8, 2019 at 15:36

1

Solved

I have a project and this project is displaying "QR code" and then for some reason I have to use a certain encoder function and for that I used this library: Crypto i am trying to use Cr...
Bander asked 18/10, 2022 at 12:15

3

Solved

I have the following cryptojs based javascript encryption/decryption functions which works perfectly fine. I use a random salt, random iv value and a specific password while encrypting the messag...
Congregational asked 2/12, 2014 at 11:46

3

I'm encrypting some parameters in PHP using openssl("parameter", "AES-256-ECB", "client") and I wish to decrypt in CryptoJS: CryptoJS.AES.decrypt(parameter, "client", {mode: CryptoJS.mode.ECB}...
Cns asked 19/12, 2016 at 12:1

1

I have two node projects running side by side in my Git directory. Same version of node 14.5, same pem key in root, same everything. Yet, one node process is able to sign my base64 pem key and the ...
Mannino asked 3/5, 2022 at 19:18

1

Solved

Goal: Simple CryptoJS example to encrypt, decrypt using AES-128, ECB, 0-padding. See below my runnable sample. Input text is "US0378331005-USD-US-en" which is encrypted (hopefully AES-128...
Childish asked 10/6, 2022 at 7:9

2

Solved

As mentioned in this answer, I can use ECB mode to reverse a transformed value back into plaintext and not just compare it to another hashed value. However, with the below code snippet: const...
Thermic asked 5/4, 2020 at 16:47

3

Solved

I have a Google Spreadsheet and would like to encrypt the content of a few cells (I do not care which encryption method is being used as long as there is an equivalent decryption method for iOS). ...
Magnetomotive asked 18/11, 2013 at 17:21

2

Solved

I'm trying this import { randomUUID } from 'crypto' var id = randomUUID() in my NextJs app but I'm getting this error: index.js?46cb:369 Uncaught TypeError: (0 , crypto__WEBPACK_IMPORTED_MO...
Chatterer asked 13/4, 2022 at 2:37

© 2022 - 2025 — McMap. All rights reserved.