Base64 support in React Native

Base64 support in React Native

Algorithm language 2 years ago (2017-03-08) Views: 14 Comments: 0

Most recent guests have used React Native's own blog client. When the client invokes the WordPress Rest API, some operations require HTTP authentication. In HTTP authentication, the "Authorization" field is added to the header of the HTTP request. The contents of the field when the user name: base64 encoding of the password Environmental dependence The Base64 codec algorithm is supported in the Nodejs buffer component. First we need to run the command line to install the buffer dependencies in the root directory of the React Native project: npm install buffer --save After installing, the app.json in the root directory of React Native The dependencies will automatically add the following one: Base64 support in React Native How to use Introduce coding decoding   Buffer project home page: For more ways to use buffers, refer to the Buffer home page: https://github.com/feross/buffer

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW