A Swedish computer programmer who is a longtime backer of Julian Assange has been detained in Ecuador in relation to an alleged plot to blackmail President Lenin Moreno.

The arrest came hours after WikiLeaks founder Julian Assange was stripped of asylum and expelled from Ecuador's Embassy in London, leading to his arrest by British police.

Visit BusinessInsider.com for more stories.

CARACAS, Venezuela (AP) — An ace Swedish programmer who was an early, ardent supporter of WikiLeaks has been arrested in Ecuador in an alleged plot to blackmail the country's president over his abandonment of Julian Assange.

But friends of Ola Bini say the soft-spoken encryption expert is being unfairly targeted for his activism on behalf of digital privacy.

On Saturday, prosecutors said they intend to charge Bini for hacking-related crimes and had him ordered detained for up to 90 days while they compile evidence.

The 36-year-old was arrested Thursday at the airport in the Ecuadorian capital of Quito as he prepared to board a flight to Japan. The arrest came just hours after Assange was evicted from the Ecuadorian Embassy in London. Bini was carrying at least 30 electronic storage devices.

Items confiscated from the Ecuadorian residence of Swedish programmer Ola Bini, who was arrested Thursday, April 11, 2019, at the airport in Quito, Ecuador, while preparing to board a flight to Japan. (State Attorney General's Office via AP)

His lawyers said they have not been notified whether he's been charged. Authorities said the plot hatched with two unidentified Russian hackers living in Ecuador involved threatening to release compromising documents about President Lenin Moreno as he toughened his stance against the WikiLeaks founder.

"It's up to the justice system to determine if he committed a crime," Interior Minister Maria Paula Romo said Friday. "But we can't allow Ecuador to become a center for piracy and spying. That period in our history is over."

"He is detained for the purposes of investigation. This is a detention that took place in recent hours, ordered by judges of course, and requested by state prosecutors," Romo said in televised comments. "This person is very close to WikiLeaks."

Romo said Bini had traveled at least 12 times to meet with Assange at the London embassy. She said he was also in Venezuela earlier this year around the same time as a close aide to Moreno's ex-mentor turned arch enemy, Rafael Correa.

Ecuadoran President Lenin Moreno with former President Rafael Correa during the inauguration ceremony at the National Assembly in Quito, May 24, 2017. REUTERS/Mariana Bazo

The former president granted Assange asylum in 2012 and has been leading a campaign cheered on by WikiLeaks to expose alleged corruption by Moreno that has included the release of damaging personal documents and photos, including several that showed him eating lobster in bed.

While the extent of Bini's relationship with Assange is unclear, the Swede has defended the WikiLeaks founder's free speech rights in an online blog he's kept over the years.

"Any official who has called for Assange to be treated as a terrorist or enemy combatant should be seriously considering stepping down from office," he wrote in December 2010.

In the same blog, Bini condemned Amazon for knocking WikiLeaks off its hosting services and credit card companies and PayPal for refusing to process payments to the secret-spilling site. He also described working on a January 2011 panel about WikiLeaks put on by his then-employer, global software firm Thoughtworks, and including Daniel Ellsberg of Pentagon Papers fame.

This frame grab image made from APTN footage provided by Teleamazonas, shows a tweet by Swedish software developer Ola Bini, who was arrested preparing to board a flight to Japan in Quito, April 11, 2019. Associated Press

An expert on secure communications, Bini arrived in Quito in 2013 after being transferred from Chicago to the Ecuador office of Thoughtworks, which has guiding principles that stress social activism. Around the same time, he started to rethink his online habits and at one point gave up his Gmail account in favor of self-hosted email.

"I am not a huge fan of having all my electronic life hosted under the auspices of U.S. legislation, especially not in light of recent events," he wrote in a 2013 post.

Friends and loved ones describe Bini as a computer geek who felt most at ease solving complex programming problem for days at a time. At the time of his arrest, he was traveling to Japan, his former wife Malin Sandell told The Associated Press, for two weeks of jujitsu training — one of the few hobbies he indulged in outside of his all-consuming work as a code developer.

His Ecuadorian girlfriend said that she did not recall Bini ever expressing strong support for Assange despite the fact that the WikiLeaks founder has deep ties in Sweden and would have been an obvious topic of conversation in the small Ecuadorian programming circles.

Julian Assange arrested by UK police at the Ecuadorian embassy in London on Thursday. Ruptly

"Ola is not a hacker, if by that you mean a criminal, but he is someone trying to understand how computers work and protect people's privacy," Sofia Ramos said in an interview from Brussels.

Ramos worked with Bini on a project at the Center for Digital Autonomy for creating a more secure instant-messaging encryption protocol. In its statement Friday, the center said Computerworld had ranked him in 2010 as Sweden's No. 6 developer.

The center is a small nonprofit incorporated in Ecuador and Spain dedicated to private, secure and anonymous communication. Its website says it has contributed to well-known projects including Enigmail and the Tor privacy browser.

In the hours before he went to the airport Thursday, Bini sent a tweet warning of a "witch hunt" by Ecuadorian authorities mopping up after Assange's forced departure from the embassy. Now his friends say that prophecy appears to have been true.

"I didn't realize that knowing somebody is a crime," said Vijay Prashad, who runs a Marxist publishing house in India and last saw Bini a few months ago in Sao Paulo, Brazil. "He's the last person who would ever be involved in an attempt to overthrow a government."

___

Associated Press writers Raphael Satter in London and Gonzalo Solano in Quito, Ecuador, contributed to this report.