Questions tagged [scramble]

a way to encode information to make the information unintelligible.

119 questions
1
vote
1 answer

Is there a way in javascript to scramble numbers where the outcome is consistent?

So I need to be able to scramble numbers around but have the outcome always be consistent. Meaning, if I scrambled 1234 and it gave me something like 2143, if I ran the scramble function again it would result in 2143 again. Is anyone aware of a way…
Mpsteve137
  • 49
  • 1
  • 1
  • 4
1
vote
1 answer

Unscrambling rotation of jpeg concentric pixel blocks

As part of a 'Capture The Flag' challenge the attached jpg was scrambled to obscure the content. The image ("flagpoles.jpg") is 1600 pixels by 1600 pixels. The concentric lines appear to have a blocksize of 10 pixels wide. (It resembles a Frank…
1
vote
1 answer

How can i optimize this Codewars c++ code?

i was doing a Codewars training in c++ and my code is working good but it says that it is not fast enough to pass all the tests. In this training, i need to check if a portion of str1 characters can be rearranged to match str2 (all passed as…
Silent observer
  • 79
  • 2
  • 13
1
vote
6 answers

Best way to replace string with random values exact length c#

I'm looking to replace a string with random values - and keep the same length. However, I'd like all characters to be replaced with chars, digits to be replaced with digits. I'm wondering the best way to do this. I'm considering a for loop through…
user270370
  • 151
  • 1
  • 3
  • 8
1
vote
0 answers

Is my bit-scrambler implementation flawed?

I am currently working on a python implementation for a 802.11 conform ofdm packet-crafter. Now I am struggling with the implementation of the bit-scrambler, as it is producing different output than shown in the IEEE Standard. Block-diagram and…
Luuke L
  • 21
  • 3
1
vote
6 answers

The best approach to scramble CSS definitions to a human-unreadable state throughout an ASP.NET application

I'm not sure if it will bring anything beyond saving on traffic through the removal of long-worded names, but I would definitely want to hide my system of namings, declarations and their organization. The thing is that manual Find&Replace is going…
User
  • 30,403
  • 22
  • 79
  • 107
1
vote
1 answer

Function to take class/message hide some fields and return message .Net

Hello i have this message/class for example like this [ProtoContract] Public class UserMessage { public override DateTime MessageTimestamp { get; set; } public override string MessageId { get; set; } [ProtoMember(35)] …
Johan Jönsson
  • 539
  • 1
  • 10
  • 23
1
vote
3 answers

How to scramble or hash values in SQL server?

I am in the process of creating demo data from data that contains Patient History Information (PHI). There are a few columns where I just want to generate a random value that stays consistent throughout the data. For example, there is a field like…
CandleWax
  • 2,159
  • 2
  • 28
  • 46
1
vote
2 answers

how to scramble words in sentence using C# and put in into array

i need help for fix my code from the lesson i get, i try to create simple script for scramble words in sentences like "the house is broken" became "broken the is house"..my code work as well but it scramble only by one word, like "THE" became…
1
vote
4 answers

Unscramble words Challenge - improve my bash solution

There is a Capture the Flag challenge I have two files; one with scrambled text like this with about 550 entries dnaoyt cinuertdso bda haey tolpap ... The second file is a dictionary with about 9,000 entries radar ccd gcc fcc historical ... The…
cuilster
  • 123
  • 1
  • 12
1
vote
2 answers

NaN Issue - Why does identical code returns diffrent results?

I'm working on a script to match scrambled words to their unscrambled counterpart, and I'm running into a weird NaN problem. I have inserted comments below to guide you further in understand my problem in hopes that you can give me an explanation as…
1
vote
3 answers

I want to scramble / unscramble a software license key into / from mysql database

I want to store software license keys in a field of my mysql db, but I want to have the license number stored in a scrambled format so that if the db is compromised the license keys won't be usable. There are 3 scenarios possible with the license…
BottyZ
  • 145
  • 2
  • 10
1
vote
0 answers

Python to Java Conversion Not Working

I needed to convert a python script which is a scramble script to a Java class that does the same thing. I've attempted it but I cannot get the correct results. This i the python code: class scramble7prng: def __init__(self, seed): …
Shivam Paw
  • 203
  • 3
  • 14
1
vote
2 answers

Algorithm for all permutations of a string in C++ or Python

I need to write a function in c++ or python that gets a string and prints all the options that it can be scrambled. for example - scramble("abc") will print - abc acb bac bca cab cba Of course it wouldn't be only words that their length is 3.
oridamari
  • 561
  • 7
  • 12
  • 24
1
vote
1 answer

Good way to scramble html?

I am embedding my livestream channel on my page so people can see it only there. However, if you look at the source code, you will be able to see the URL of my channel on livestream and see it there which i dont want. I wonder if there is a way to…
user3070003