exec disp

This commit is contained in:
Ville Rantanen
2020-06-21 08:48:50 +03:00
parent 476296bfa3
commit 2dff648eb3
2 changed files with 4 additions and 4 deletions

0
skel/disp Normal file → Executable file
View File

View File

@@ -177,7 +177,7 @@ def generate_password_page(path, password_file, password):
def get_target(filename): def get_target(filename):
splitted = os.path.splitext(filename) splitted = os.path.splitext(filename)
return ( return (
splitted[0], splitted[0],
random_string(), random_string(),
splitted[1] splitted[1]
@@ -265,7 +265,7 @@ Object.defineProperty(String.prototype, 'hashCode', {
} }
}); });
function scramble(p,t) { function scramble(p,t) {
p += t; p += t;
var sstr = ''; var sstr = '';
for (var i=0; i < t.length; i++) { for (var i=0; i < t.length; i++) {
sstr += String.fromCharCode(p.charCodeAt(i) + t.charCodeAt(i)); sstr += String.fromCharCode(p.charCodeAt(i) + t.charCodeAt(i));
@@ -334,11 +334,11 @@ function newPass(password, target) {
</div> </div>
</body> </body>
</html>""".replace( </html>""".replace(
"TARGET_EXT", "TARGET_EXT",
target_ext, target_ext,
1 1
).replace( ).replace(
"TARGET_BASE", "TARGET_BASE",
target_base, target_base,
1 1
).replace( ).replace(