Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesen't work #1

Closed
makovez opened this issue May 5, 2019 · 7 comments
Closed

Example doesen't work #1

makovez opened this issue May 5, 2019 · 7 comments

Comments

@makovez
Copy link

makovez commented May 5, 2019

The example provided does encode the file but it does not decode it. Also, it does not include the correct "github.com/auyer/steganography" must be replaced with "gopkg.in/auyer/steganography.v2"

@auyer
Copy link
Owner

auyer commented May 5, 2019

Can you provide more informaton on how you have tested this ?

In case you missused it:
The example requires you to use a -e to endode and -d to decode.

Encoding: go run stego.go -e -i stegosaurus.png -mi message.txt -o e.png
Decoding: go run examples/stego.go -d -i e.png

Importing "github.com/auyer/steganography" will import the current state of the master branch. Although I recommend importing from gopkg for stability, that example is representative of the latest commit.

@makovez
Copy link
Author

makovez commented May 5, 2019 via email

auyer added a commit that referenced this issue May 5, 2019
@auyer
Copy link
Owner

auyer commented May 5, 2019

To prevent missusage errors, I've pushed a few changes that might help clarify your issue. Can you test it again ?

A few things to keep in mind:

  • make sure you are selecting the encoded image in the decoding phase
  • make sure you are usig the arguments correctly
  • note that if the encoded message is not printable to STDIO, you should send it to a file with the -mo argument.
  • do read the help message !

@makovez
Copy link
Author

makovez commented May 6, 2019

image

image
Output file decoded 0 byte. why?

@auyer
Copy link
Owner

auyer commented May 10, 2019

I have not been able to test this on windows yet. Can you run the unit tests on your OS and send me the results ?

Instructions:

go get github.com/auyer/steganography
// Change to the directory
go test --race .

@makovez
Copy link
Author

makovez commented May 11, 2019

image

@auyer
Copy link
Owner

auyer commented Jun 10, 2019

I just tested it under a Windows System, and it works fine.
Maybe check if you have the correct version being imported into the example.
stego

@auyer auyer closed this as completed Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants