Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ribbit javascript api 并试图弄清楚如何不显示秘密密钥以及使用 Ribit.init 函数在代码块中设置的所有应用程序设置:
Ribbit.init("consumerKey");
你不能。所有 JS 都是公开可见的。
除非您想在服务器端对密钥进行 base64 编码并修改 init 函数以首先对其进行解码。它很容易可逆,但它会有点混淆它。