How do you encode sha-1 and base 64?

Answer:

In PHP, use the sha1 function. For example, to encode the word "hello" into sha1, use sha1("hello");.

Similarly, there is a base64_encode function. So you'd use base64_encode("hello");.

First answer by ID0413469426. Last edit by ID0413469426. Question popularity: 1 [recommend question].