triple-DES encryption using JavaScript

#1

It is documented on flutterwave page that API parameters should be encrypted using tripleDES algorithm, but a function for encrypting with javascript is not provided. Is it advisable to use an external library to encrypt? If yes what should be used as the secret?

0 Likes

#2

Hello @Omar_Mohammed,

Can you give a brief on what you are trying to achieve? For Collections, Rave is your guy.

If you have a reason why you are not using Rave, can you fill us in on it?

Thanks

0 Likes

#3

Hi! I’m trying to verify BVN. Can rave do that? @Gondy

0 Likes

#4

Hello @Omar_Mohammed

Here is our Node.JS Library, you can use it instead.

Find 3DES Javascript library here if you prefer that.

Regards

0 Likes

#5

I think I need both libraries. They work hand in hand. Thank you @Gondy

1 Like

#6

Does the node library encrypt the details automatically?
because i keep getting a response of “error from bank!” @Gondy

0 Likes

#7

Problem solved
i had to go live, and use my live api keys.
also had to pass ‘true’ as the value for BASE_URL_OR_PRODUCTION_FLAG
const flutterwave = new Flutterwave(config.API_KEY, config.MERCHANT_KEY, true);

1 Like

#8

Alright @Omar_Mohammed

Thanks for coming back to confirm how you resolved this problem.

Regards

1 Like