我如何解密安全的环境变量? [英] How I can decrypt secure env variables?

查看:31
本文介绍了我如何解密安全的环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有一些安全(加密)环境变量的 .travis.yml.现在我需要解密这些变量以在不同的项目中使用它们.

I have .travis.yml with some secure (encrypted) env variables. Now I need to descrypt those variables to use them in different project.

有没有简单的方法可以做到这一点(除了触发提交并在控制台输出中打印它们)?

Is there easy way of doing this (except triggering a commit and printing them in console output)?

推荐答案

我不认为你可以解密它.公钥用于加密数据,只能用travis不提供的私钥解密.

I don't think you can decrypt it. Public key is used to encrypt the data and it can only be decrypted with the private key which travis doesn't provide.

这篇关于我如何解密安全的环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆